package org.geom.surface;

import java.util.ArrayList;

import org.geom.Vector3D;
import org.geom.Triangle;

public abstract class Surface implements ISurface {

	protected ArrayList<Triangle> triangles = new ArrayList<Triangle>();
	
	@Override
	public void addFace(Vector3D x, Vector3D y, Vector3D z) {
		addFace(new Triangle(x,y,z));
	}

	@Override
	public void addFace(Triangle n) {
		triangles.add(n);		
	}

	@Override
	public ArrayList<Triangle> getTriangles() {
		return triangles;
	}

	@Override
	public abstract void sample();

}
